-- GENERATED SPELL FOR [Nethergarde Officer] --


function spell0_6003(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6003', 15000, 1)
end

function spell1_6003(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6003', 597, 1)
end

function Sorts_6003(pUnit, Event)
local choix_sorts_6003 = math.random(0, 1)
if choix_sorts_6003 == 0 then
pUnit:RegisterEvent('spell0_6003', 1, 1)
end
if choix_sorts_6003 == 1 then
pUnit:RegisterEvent('spell1_6003', 1, 1)
end
end

function mob6003_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6003', math.random(1500, 3000), 1)
end

function mob6003_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6003_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6003_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6003, 1, 'mob6003_Action')
RegisterUnitEvent(6003, 2, 'mob6003_Leave')
RegisterUnitEvent(6003, 3, 'mob6003_Kill')
RegisterUnitEvent(6003, 4, 'mob6003_Die')
